cmake_minimum_required(VERSION 3.15)
project(FilesIOLearning VERSION 1.0.0 LANGUAGES CXX)

# 设置C++标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 创建可执行文件
add_executable(${PROJECT_NAME}
    main.cpp
)

# 包含当前目录头文件
target_include_directories(${PROJECT_NAME} PRIVATE
    ${CMAKE_CURRENT_SOURCE_DIR}
)

# 设置输出目录
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

# 可选：设置编译选项
# target_compile_options(basic_type_transform PRIVATE
#     -Wall
#     -Wextra
#     -O2
# )

# 可选：安装规则
# install(TARGETS basic_type_transform
#     RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
# ) 
